package com.xyz.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

public class CaptchaUserNameToken extends UsernamePasswordToken {

    private String capatcha;

    public CaptchaUserNameToken(String capatcha, String username, String password){
        super(username,password);
        this.capatcha = capatcha;
    }

    public CaptchaUserNameToken(String capatcha, String username, String password, String host, boolean rememberMe){
        super(username, password, rememberMe, host);
        this.capatcha = capatcha;
    }

    public String getCapatcha() {
        return capatcha;
    }

    public void setCapatcha(String capatcha) {
        this.capatcha = capatcha;
    }

    @Override
    public String toString() {
        return "CaptchaUserNameToken{" +
                "capatcha='" + capatcha + '\'' +
                ",super=[" + super.toString() + "]" +
                '}';
    }
}
